<template>
	<div class="seach-model">
		<h3>热门搜索</h3>
		<div>
			<a href="http://www.ntyouxuan.com/newnt/#/seachall1"><span>饭</span></a>
			<a href="http://www.ntyouxuan.com/newnt/#/seachall2"><span>小米</span></a>
			<a href="http://www.ntyouxuan.com/newnt/#/seachall3"><span>蛤蜊</span></a>
			<a href="http://www.ntyouxuan.com/newnt/#/seachall4"><span>虾干</span></a>
			<a href="http://www.ntyouxuan.com/newnt/#/seachall5"><span>绿壳鸡蛋</span></a>
			<a href="http://www.ntyouxuan.com/newnt/#/seachall6"><span>绿豆饼</span></a>
			<a href="http://www.ntyouxuan.com/newnt/#/seachall7"><span>贵妃芒</span></a>
			<a href="http://www.ntyouxuan.com/newnt/#/seachall8"><span>蜂蜜</span></a>
			<a href="http://www.ntyouxuan.com/newnt/#/seachall9"><span>海鲜</span></a>
			<a href="http://www.ntyouxuan.com/newnt/#/seachall10"><span>酥李</span></a>
			
		</div>

	</div>
</template>

<script>
	export default{
		data () {
			return{
				rmseachlist:''
			}
		},
		created:function(){
			var self=this;
			$.ajax({
				type:"get",
				url:furl+"index.php?app=ajax_search&act=history_search",
				dataType:'json',
				success:function(res){
					if(res.done){
						self.rmseachlist=res.retval;
//						console.log(self.rmseachlist)
//						self.rmseachlistq=res.retval[1].keyword
						
						var arr = self.rmseachlist;
						for (var i = 0;i<arr.length;i++) {
//							console.log(arr[i].keyword) 
//							$("#seach").val(arr[0].keyword)
							self.keywordd = arr[0].keyword
							console.log(self.keywordd)
						}
						
					}
				}
			});
		},
		methods:{
			searchxx: function(){
				console.log(this.keywordd)
				window.location.href='http://www.ntyouxuan.com/newnt/#/seachall?seachid=466&statusall=1'
			}
		}
		
	}
</script>

<style>
	.seach-model{position:fixed;top:0.9rem;bottom:0;left:0;right:0;background-color:#fff;z-index: 998;padding-top: 0.33rem;padding-left:0.32rem;padding-right: 0.32rem;}
	.seach-model h3{font-size:0.24rem;color:#999;line-height: 0.26rem;}
	.seach-model span{display: inline-block;font-size:0.28rem;color:#333;line-height: 0.52rem;padding-left: 0.24rem;padding-right: 0.24rem;background-color:#f3f3f3;margin: 0.24rem 0.24rem 0rem 0;float:left;}
</style>